package lab02.test19;

import java.util.Scanner;

public class Test19 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个英文字符串.");
        String str = sc.nextLine();

        StringBuffer s = new StringBuffer(str);    //用StringBuffer类的reverse方法反转字符串
        s.reverse();
        String string = s.toString();

        System.out.println("转换后的字符串:");
        ConversionString conversionString = new ConversionString();   //创建大小写转换的对象，实现字符的大小写转换
        conversionString.reverseString(string);
    }
}
